import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    num: 0,
    isLogin: false,
    balanceShow: false,
    loginData: {
      id: "",
      password: "",
      uname: "",
      uphone: "",
      username: "",
    }
  },
  mutations: {
    //设置登录显示状态
    increment(state) {
      state.num++
    },
    SETBALANCE(state) {
      state.balanceShow = !state.balanceShow
    },
    LJM_LOGIN(state, data) {
      state.loginData = data
    },
    SETLOGIN(state, msg) {
      state.isLogin = msg
    },
  },
  modules: {

  },
  getters: {

  },
  actions: {

  },
});
